import React from 'react'
import * as Icons from '@ant-design/icons';

const Iconfont = (props) => {
 // icon = "UserOutlined"
 const { icon } = props
//  console.log('icon',typeof icon);
 const antIcon = Icons
 return React.createElement(antIcon[icon])
}

export default Iconfont